import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JPanel;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.WindowConstants;
import org.jdesktop.application.Application;
import javax.swing.SwingUtilities;

import org.jvnet.substance.SubstanceLookAndFeel;
import org.jvnet.substance.button.StandardButtonShaper;
import org.jvnet.substance.utils.SubstanceConstants;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class frmMensajeError extends javax.swing.JFrame {
	private JPanel pnlMensajeError;
	private JLabel lblLogoError;
	private JButton btnAceptarError;
	private JLabel lblMensajeError;

	
	
	public frmMensajeError() {
		super("---- ATENCIÓN ----");
		initGUI();
		this.setResizable(false);
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				pnlMensajeError = new JPanel();
				getContentPane().add(pnlMensajeError, BorderLayout.CENTER);
				pnlMensajeError.setBackground(new java.awt.Color(255, 255, 255));
				pnlMensajeError.setLayout(null);
				{
					Icon logoError = new ImageIcon(getClass().getResource("src/resources/Imagenes/error50x50.png"));
					lblLogoError = new JLabel(logoError);
					pnlMensajeError.add(lblLogoError);
					lblLogoError.setBounds(31, 24, 77, 49);
					lblLogoError.setName(" ");
				}
				{
					lblMensajeError = new JLabel();
					pnlMensajeError.add(lblMensajeError);
					lblMensajeError.setBounds(114, 32, 461, 32);
					lblMensajeError.setFont(new java.awt.Font("Bitstream Charter", java.awt.Font.BOLD,15));
					lblMensajeError.setForeground(new java.awt.Color(0,0,0));
					lblMensajeError.setName(" ");
				}
				{
					Icon aceptarError = new ImageIcon(getClass().getResource("src/resources/Imagenes/aceptar20x20.png"));
					btnAceptarError = new JButton("Aceptar", aceptarError);
					btnAceptarError.putClientProperty(SubstanceLookAndFeel.BUTTON_SHAPER_PROPERTY, new StandardButtonShaper());
					btnAceptarError.putClientProperty(SubstanceLookAndFeel.BUTTON_SIDE_PROPERTY, SubstanceConstants.Side.BOTTOM);
					pnlMensajeError.add(btnAceptarError);
					btnAceptarError.setBounds(254, 91, 126, 35);
					btnAceptarError.setName("Aceptar");
					btnAceptarError.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							frmMensajeError.this.setVisible(false);
							//System.out.println("btnAceptarError.actionPerformed, event="+evt);
							//TODO add your code for btnAceptarError.actionPerformed
						}
					});
				}
			}
			pack();
			this.setSize(616, 176);
			Application.getInstance().getContext().getResourceMap(getClass()).injectComponents(getContentPane());
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

	public JLabel getLblMensajeError() {
		return lblMensajeError;
	}

	public void setLblMensajeError(JLabel lblMensajeError) {
		this.lblMensajeError = lblMensajeError;
	}

}
